#include "gpio.h"
#include "xil_io.h"

//gpio reset operations
void SetGpioReg(unsigned int addrBase,unsigned int addrOffset,unsigned int value)
{
	Xil_Out32(addrBase+addrOffset, value);
}

int GetGpioReg(unsigned int addrBase,unsigned int addrOffset)
{
	int ans=0;
	ans=Xil_In32(addrBase+addrOffset);
	return ans;
}

void __SetGpioReg(unsigned int addrBase,unsigned int addrOffset,unsigned int value)
{
	*(volatile uint32_t *)(addrBase + addrOffset) = value;
}

int __GetGpioReg(unsigned int addrBase,unsigned int addrOffset)
{
	int ans = 0;
	ans = *(volatile uint32_t *)(addrBase + addrOffset);
	return ans;
}
